#define _CRT_SECURE_NO_WARNINGS 1

#include"Sort.h"

void TestMergeSort()
{
	int a[] = { 6,1,2,9,3,4,10,8 };
	PrintArry(a, sizeof(a) / sizeof(int));

	MergeSort(a, sizeof(a) / sizeof(int));

	PrintArry(a, sizeof(a) / sizeof(int));
}






void TestMergeSortNonR()
{
	int a[] = { 6,1,2,9,3,4,10,8,0 };
	PrintArry(a, sizeof(a) / sizeof(int));

	MergeSortNonR(a, sizeof(a) / sizeof(int));

	PrintArry(a, sizeof(a) / sizeof(int));
}






void TestCountSort()
{
	int a[] = { 6,1,2,8,6,4,1,8,0 };
	PrintArry(a, sizeof(a) / sizeof(int));

	CountSort(a, sizeof(a) / sizeof(int));

	PrintArry(a, sizeof(a) / sizeof(int));
}






int main()
{
	//TestMergeSort();
	//TestMergeSortNonR();
	TestCountSort();
	return 0;
}





















